<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* a 显示模式是行内，加宽高默认不生效，转显示模式：行内块 */
        a {
            /* 去掉下划线 */
            text-decoration: none;
            width: 100px;
            height: 50px;
            background-color: red;
            /* 转换为行内块 */
            display: inline-block;
            /* 字体颜色 */
            color: #fff;
            /* 水平居中 */
            text-align: center;
            /* 行高 */
            line-height: 50px;
        }

        /* a:hover {*/
        /*    background-color: orange;*/
        /*}*/
    </style>
</head>
<body>
    <a href="#">导航1</a>
    <a href="#">导航2</a>
    <a href="#">导航3</a>
    <a href="#">导航4</a>
    <a href="#">导航5</a>
    
</body>
</html>